#include <stdio.h>

void print (int number)
{

    if (number < 10)
    {

        printf("%d " , number % 10) ;

    }

    else
    {

        printf ("%d " , number % 10) ;

        print (number / 10) ;

    }

}

int main ()
{

    int number = 0 ;

    scanf ("%d" , &number) ;

    print (number) ;

    return 0 ;

}